<%-- 
    Document   : VerPcFecha
    Created on : 19-nov-2011, 21:06:26
    Author     : OSUKARU
--%>

<%@page import="Modelo.Alumno"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <div align="center">
            <h1>PC No ${id_computadora} / Fecha ${fecha}</h1>
            <form action="${pageContext.request.contextPath}/Procesar" method="POST">
                <input type="hidden" name="operacion" value="agregarAlumno" />
                <fieldset style ="width: 500px;">
                    <legend style = "font-size: 17px;">Informacion Personal:</legend>
                    <table border="1">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>Carnet</th>
                                <th>Alumno</th>
                                <th>Carrera</th>
                                <th>Ciclo</th>
                            </tr>
                        </thead>
                        <tbody>
                            <%
                                List<Alumno> lstAlumnos = null;
                                if (request.getAttribute("listaAlumnos") != null) {
                                    lstAlumnos = (List) request.getAttribute("listaAlumnos");
                                    for (Alumno alum : lstAlumnos) {
                            %>
                            <tr>
                                <td><%=alum.getId_alumno()%></td>
                                <td><%=alum.getCarnet()%></td>
                                <td><%=alum.getNombre() + " " + alum.getApellidos()%></td>
                                <td><%=alum.getCarrera()%></td>
                                <td><%=alum.getCiclo()%></td>
                            </tr> 
                            <%
                                    }
                                }
                            %>
                        </tbody>
                    </table>
                </fieldset>
            </form>
            <a href="index.jsp">Regresar al inicio</a>
        </div>
    </body>
</html>
